cmake_minimum_required(VERSION 3.21)
project(mouse_listener C)

set(CMAKE_C_STANDARD 99)

# 创建DLL
add_library(mouse_listener SHARED com_example_jni_MouseListenerJNI.c)
# 添加jni包
find_package(JNI REQUIRED)
include_directories(${JNI_INCLUDE_DIRS})
#add_executable(mouse_listener main.c)
#add_executable(test listener_window.c)
target_link_libraries(mouse_listener
        user32      # 用户界面函数
        kernel32    # 核心系统函数
        )


#add_executable(listener listener.c)
